package cn.com.nes.mybatis.agent.contract.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * </p>
 * @author nes
 * @since 2022-08-16
 */
@TableName("contract_serial_number")
public class ContractSerialNumber extends Model<ContractSerialNumber> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公司id
     */
    @TableField("company_id")
    private String companyId;

    /**
     * 编号前缀
     */
    private String prefix;

    /**
     * 年费
     */
    private Integer year;

    @TableField(value = "serial_number")
    private Integer serialNumber;

    private Integer deleted;

    @TableField("gmt_create")
    private Date gmtCreate;

    @TableField("gmt_modified")
    private Date gmtModified;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(Integer serialNumber) {
        this.serialNumber = serialNumber;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public static final String ID = "id";

    public static final String COMPANY_ID = "company_id";

    public static final String PREFIX = "prefix";

    public static final String YEAR = "year";

    public static final String SERIAL_NUMBER = "serial_number";

    public static final String DELETED = "deleted";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFIED = "gmt_modified";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ContractSerialNumber{" + ", id=" + id + ", companyId=" + companyId + ", prefix=" + prefix + ", year=" + year + ", serialNumber=" + serialNumber + ", deleted=" + deleted + ", gmtCreate=" + gmtCreate + ", gmtModified=" + gmtModified + "}";
    }

}
